home *** CD-ROM | disk | FTP | other *** search
- from JascApp import *
-
- def ScriptProperties():
- return {
- 'Author': 'Kris Zaklika',
- 'Copyright': 'Copyright (C) 2002-2003, Jasc Software Inc., All Rights Reserved.',
- 'Description': 'Soap bubbles all over the image',
- 'Host': 'Paint Shop Pro',
- 'Host Version': '8.00'
- }
-
- def Preset_BallsAndBubbles():
- return {
- 'Illumination': {
- 'MaxAmbience': 100,
- 'MinAmbience': 0,
- 'LightList': [{
- 'BubbleLight': App.Constants.Boolean.false,
- 'Color': (255,255,255),
- 'Direction': (0.320766,0.439425,0.839056),
- 'HighlightSize': 37
- },{
- 'BubbleLight': App.Constants.Boolean.true,
- 'Color': (192,192,192),
- 'Direction': (0.402707,0.757963,-0.513147),
- 'HighlightSize': 14
- },{
- 'BubbleLight': App.Constants.Boolean.false,
- 'Color': (192,192,192),
- 'Direction': (-0.02265,0.01735,-0.999593),
- 'HighlightSize': 0
- }]
- },
- 'Mode': App.Constants.CountType.Multiple,
- 'Multiple': {
- 'AverageSize': 24,
- 'Coverage': 82,
- 'CreateMethod': App.Constants.BubbleCreateMethod.Intersecting,
- 'SizeVariation': 43
- },
- 'RandomSeed': 36,
- 'RandomizePlacement': App.Constants.Boolean.false,
- 'Single': {
- 'MaxPossibleSize': App.Constants.Boolean.true
- },
- 'Surface': {
- 'Material': {
- 'Color': None,
- 'Pattern': None,
- 'Gradient': {
- 'Name': 'Black-white',
- 'GradientType': App.Constants.GradientType.Radial,
- 'Angle': 0,
- 'RepeatCount': 0,
- 'RepeatType': App.Constants.RepeatType.Pad,
- 'ColorStops': None,
- 'TransparencyStops': [],
- 'CenterPoint': (0.5,0.5),
- 'FocalPoint': (0.5,0.5),
- 'Invert': App.Constants.Boolean.true
- },
- 'Texture': None,
- 'Identity': 'Material'
- },
- 'BumpMap': {
- 'Active': App.Constants.Boolean.false
- },
- 'EnvironmentMap': {
- 'FringeType': 14493,
- 'Active': App.Constants.Boolean.true,
- 'FringeSpacing': 15,
- 'PatternOpacity': 69,
- 'EnvironmentType': App.Constants.BubbleMapType.Diffraction
- },
- 'Gloss': 100,
- 'Opacity': 21,
- 'Shininess': 100
- }
- }
-
- def Do(Environment):
- App.Do( Environment, 'BallsAndBubbles', Preset_BallsAndBubbles())
-
-